package day2.Test3;

public class Monkey extends Animal2 implements IJumpAble,ICycleAble{
    private String name;
    public Monkey() {
    }

    public Monkey(String color, int age,String name) {
        super(color, age);
        this.name = name;
    }

    @Override
    public void eat() {
        System.out.println("猴子吃饭");
    }

    @Override
    public void sleep() {
        System.out.println("猴子睡觉");
    }

    @Override
    public void cycle() {
        System.out.println("猴子骑自行车");
    }

    @Override
    public void jump() {
        System.out.println("猴子跳火圈");

    }
}
